package cn.tedu.lianxi6;

public class Text7 {
	public static void main(String[] args) {
	/*	Integer[] a= {1,2,4,5,36,56,5};
		print(a);
		Double[] b= {1.2,3.2,5.6,3.525,45.26,45.32};
		print(b);
		String[] c= {"du","shu","ba","ting","zi"};
		print(c);
		Character[] d= {'b','n','2','j','5','u'};
		print(d);*/	
		Integer[] a= {1,12,23,12,45,56,7};
		Double[] b= {2.2,3.5,6.36,5.5,5.232,45.2};
		String[] c= {"dj","jd","hu","nbbn","bhn"};
		At a1=new At();
		a1.ne(a);
		a1.ne(b);
		a1.ne(c);
		At1 b1=new At1();
		b1.name(null);
		b1.n(null);
		b1.nae(null);
		b1.na(a);
		b1.na(b);
		b1.na(c);
		
		
		
		

/*	private static void print(Integer[] a) {
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i]+" ");
		}
		System.out.println();
		
	}

	private static void print(Double[] b) {
		for (int i = 0; i < b.length; i++) {
			System.out.print(b[i]+" ");
		}
		System.out.println();
	}

	private static void print(String[] c) {
		for (int i = 0; i < c.length; i++) {
			System.out.print(c[i]+" ");
		}
		System.out.println();
	}

	private static void print(Character[] d) {
		for (int i = 0; i < d.length; i++) {
			System.out.print(d[i]+" ");
		}
		System.out.println();
	}
*/	
/*	public static <U> void print(U[] d) {
		for (int i = 0; i < d.length; i++) {
			System.out.print(d[i]+" ");
		}
		System.out.println("-----");
		for (U u : d) {
			System.out.print(u+" ");
		}
		System.out.println();
		*/
	}

}
class At{
	Integer[] a= {1,12,23,12,45,56,7};
	Double[] b= {2.2,3.5,6.36,5.5,5.232,45.2};
	String[] c= {"dj","jd","hu","nbbn","bhn"};
/*	public void name(Integer[] j) {
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i]+" ");
		}
		System.out.println();
	}
	public At(Double[] d) {		
		for (int i = 0; i < b.length; i++) {
			System.out.print(b[i]+" ");
		}
		System.out.println();
	}
	public void na(String[] v) {
		for (int i = 0; i < c.length; i++) {
			System.out.print(c[i]+" ");
		}
		System.out.println();
	}*/
	public <T> void ne(T[] D) {
		for (int i = 0; i < D.length; i++) {
			System.out.print(D[i]+" ");
		}
		System.out.println("-----");
		for (T t : D) {
			System.out.print(t+" ");
		}
		System.out.println();
	}
	
}
class At1{
	Integer[] a= {1,12,23,12,45,56,7};
	Double[] b= {2.2,3.5,6.36,5.5,5.232,45.2};
	String[] c= {"dj","jd","hu","nbbn","bhn"};
	public void name(Integer[] a1) {
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i]+" ");
		}
		System.out.println();
	}
	public void n(Double[] b1) {
		for (int i = 0; i < b.length; i++) {
			System.out.print(b[i]+" ");
		}
		System.out.println();
	}
	public void nae(String[] c1) {
		for (int i = 0; i < c.length; i++) {
			System.out.print(c[i]+" ");
		}
		System.out.println();
	}
	public <T> void na(T[] a) {
		for (int i = 0; i < a.length; i++) {
			System.out.print(a[i]+" ");
		}
		System.out.println("----");
		for (T t : a) {
			System.out.print(t+" ");
		}
		System.out.println();
	}
}